package com.vcc.core.enumConstant;


import lombok.Getter;

import java.util.Arrays;
import java.util.stream.Collectors;


//AUTH
//VERIFY
//REFUND
//REVERSAL
@Getter
public enum AuthTypeEnum {
    Auth("AUTH", "授权"),
    Reversal("VERIFY", "验证"),
    REFUND("REFUND", "退款"),
    REVERSAL("REVERSAL", "撤销");

    private String status;

    private String title;

    AuthTypeEnum(String status, String title) {
        this.status = status;
        this.title = title;
    }


    public static AuthTypeEnum getByStatus(String status) {
        return Arrays.stream(AuthTypeEnum.values()).filter(it -> it.status.equals(status)).collect(Collectors.toList()).get(0);
    }
}
